{% load comments i18n %}
{% if user.is_authenticated %}
	<form action="{% comment_form_target %}" method="post">{% csrf_token %}
	  {% if event %} <input type="hidden" name="next" value="{% url event event.id %}" />{% endif %}
	  {% for field in form %}
	    {% if field.is_hidden %}
	      {{ field }}
	    {% else %}
		    {% if field.name != "name" and field.name != "email" and field.name != "url" %}
				{% if field.errors %}{{ field.errors }}{% endif %}
				<p
					{% if field.errors %} class="error"{% endif %}
					{% ifequal field.name "honeypot" %} style="display:none;"{% endifequal %}>
					{% if field.name == "comment" %}
						<textarea id="id_{{field.name}}" name="{{field.name}}" COLS=25 ROWS=5></textarea>
					{% else %}
						{{ field.label_tag }} {{ field }}
					{% endif %}
				</p>
				{% endif %}
			{% endif %}
	  {% endfor %}
	  <p class="submit">
	    <input type="submit" name="post" class="submit-post" value="{% trans "Post" %}" />
	  </p>
	</form>
{%endif%}
